package elec;

import viscosity.Viscosity;
import integration.IntegrableSystem;

public class ElectroFlakeSystem extends IntegrableSystem {

	public ElectricForce elec;
	public Viscosity visc;
	
	public ElectroFlakeSystem() {this(1f, 0.01f);}
	public ElectroFlakeSystem(float k, float c) {
		elec = new ElectricForce(k);
		visc = new Viscosity(c);
	}

	
	
	public void addElectroFlake(ElectroFlake a) {
		addIntegrable(a);
		elec.objectList.add(a);
		visc.objectList.add(a);
	}
	
	public void addElectroLump(ElectroLump a) {
		elec.objectList.add(a);
	}

	public void findSlope() {
		super.findSlope();
		elec.applyForces();
		visc.applyForces();
	}
}
